Zepto(function ($) {
  /**
   * 返回上一页
   *
   */
  $(".nav-header").on("click", ".back", function (e) {
    window.history.go(-1);
  });

  //初始化类目列表
  var swiper = new Swiper('.swiper-container', {
    pagination: '.swiper-pagination',
    slidesPerView: 3,
    paginationClickable: true,
    spaceBetween: 3
  });
  var zOrderInfoId = sessionStorage.getItem("zOrderInfoId")
  window.onload = function () {
    // getOrderDetails();
  }
  function getOrderDetails() {
    $.ajax({
      type: 'GET',
      url: getUrl + '/wxmall/order/selectOrderInfo',
      data: {
        "zOrderInfoId": zOrderInfoId
      },
      dataType: 'json',
      timeout: 15000,
      headers: headers("order.selectOrderInfo"),
      success: function(data){
        initView(data)
      },
      error: function(xhr, type){
      }
    });
  }
  function initView(data) {
    console.log(data);
  }
});